package cn.edu.ujn.liuklab3.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;
@Component
public class Table implements Serializable {
    private static final long serialVersionUID = 531271720761052785L;

    private Integer tableId;

    private Integer restId;

    @Override
    public String toString() {
        return "Table{" +
                "tableId=" + tableId +
                ", restId=" + restId +
                ", tableCondition='" + tableCondition + '\'' +
                ", start=" + start +
                ", rows=" + rows +
                '}';
    }

    private String tableCondition;
    private Integer start;
    private Integer rows;

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public void setTableId(Integer tableId) {
        this.tableId = tableId;
    }

    public void setRestId(Integer restId) {
        this.restId = restId;
    }

    public String getTableCondition() {
        return tableCondition;
    }

    public void setTableCondition(String tableCondition) {
        this.tableCondition = tableCondition;
    }

    public Integer getTableId() {
        return tableId;
    }

    public Integer getRestId() {
        return restId;
    }
}

